package com.qing.expert.modules.expert.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("expert_rating")
public class ExpertRating {

    @TableId(type = IdType.ASSIGN_ID)
    private String ratingId;

    /**
     * 订单ID
     */
    @TableField("order_id")
    private String orderId;

    /**
     * 达人ID
     */
    @TableField("expert_id")
    private String expertId;

    /**
     * 用户ID
     */
    @TableField("user_id")
    private String userId;

    /**
     * 评分(1-5分)
     */
    @TableField("rating")
    private Integer rating;

    /**
     * 评价内容
     */
    @TableField("comment")
    private String comment;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
}